package com.njtoyo.taxi.admin.mapper.master.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Builder
public class RideRefundLog implements Serializable {


    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Long rideId; // 行程id
    private Long rideOrderId; // 行程订单id
    private Long customerId; // 乘客id
    private Long companyId; // 公司id
    private Long cantonId; // 运营区id
    private String orderNumber; // 订单号
    private String number; // 退款单号
    private String reason; // 退款原因
    private BigDecimal orderAmount; // 订单金额
    private BigDecimal refundAmount; // 退款金额
    private Integer state; // 退款状态,0-init,1-fail,2-success
    private String operator; // 操作人
    private BigDecimal driverRefundAmount; // 司机退款金额
    private BigDecimal companyRefundAmount; // 公司退款金额
    private BigDecimal platformRefundAmount; // 平台退款金额
    private BigDecimal driverRefundRatio; // 司机退款比率
    private BigDecimal companyRefundRatio; // 公司退款比率
    private BigDecimal platformRefundRatio; // 平台退款比率
    private String applyTime; // 提交时间
    private String completeTime; // 完成时间
    private String createdAt; // 创建时间
    private String updatedAt; // 修改时间
    private BigDecimal refundBeforeBalance;
    private BigDecimal refundAfterBalance;
}
